package cn.baiweigang.uu.msg;

import cn.baiweigang.uu.enums.ContractCodeEnum;
import cn.baiweigang.uu.enums.PeriodEnum;
import cn.baiweigang.uu.model.KLineInfo;
import org.springframework.context.ApplicationEvent;

public class PriceChangeEvent extends ApplicationEvent {
    private KLineInfo price;
    private PeriodEnum period;
    private ContractCodeEnum contractCode;

    public PriceChangeEvent(Object source, ContractCodeEnum contractCode,
                            PeriodEnum period, KLineInfo price) {
        super(source);
        this.price = price;
        this.period = period;
        this.contractCode=contractCode;
    }

    public KLineInfo getPrice() {
        return price;
    }

    public void setPrice(KLineInfo price) {
        this.price = price;
    }

    public PeriodEnum getPeriod() {
        return period;
    }

    public void setPeriod(PeriodEnum period) {
        this.period = period;
    }

    public ContractCodeEnum getContractCode() {
        return contractCode;
    }

    public void setContractCode(ContractCodeEnum contractCode) {
        this.contractCode = contractCode;
    }
}
